type User = {
    name: string
    age: number
}

function isAdult(user: User): boolean {
    return user.age >= 18
}

const justine: User = {
    name: '吊毛',
    age: 99
}

const isJustineAnAdult: boolean = isAdult(justine);
console.log(isJustineAnAdult)